//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01A
TN_Widget.CreateTable([['Sesame Street Live!','Angel of the Winds Arena','Everett, WA','Saturday','5/25/2024','2:00 PM','6085757','Sesame-Street-Live--5-25-2024'],['21 Savage','Xfinity Theatre','Hartford, CT','Saturday','6/1/2024','7:00 PM','6292365','21-Savage-6-1-2024'],['Hank Williams Jr. & Charley Crockett','Xfinity Theatre','Hartford, CT','Friday','6/7/2024','7:00 PM','6129223','Hank-Williams-Jr----Charley-Crockett-6-7-2024'],['A Boogie Wit Da Hoodie','Xfinity Theatre','Hartford, CT','Saturday','6/22/2024','8:00 PM','6240506','A-Boogie-Wit-Da-Hoodie-6-22-2024'],['Janet Jackson & Nelly','Xfinity Theatre','Hartford, CT','Saturday','6/29/2024','8:00 PM','6215383','Janet-Jackson---Nelly-6-29-2024'],['Alanis Morissette, Joan Jett And The Blackhearts & Morgan Wade','Xfinity Theatre','Hartford, CT','Saturday','7/6/2024','7:00 PM','6071667','Alanis-Morissette--Joan-Jett-And-The-Blackhearts---Morgan-Wade-7-6-2024'],['Blink-182 & Pierce The Veil','Xfinity Theatre','Hartford, CT','Wednesday','7/24/2024','8:00 PM','6028524','Blink-182---Pierce-The-Veil-7-24-2024'],['Hootie and The Blowfish','Xfinity Theatre','Hartford, CT','Thursday','8/1/2024','8:00 PM','6062597','Hootie-and-The-Blowfish-8-1-2024'],['New Kids On The Block','Xfinity Theatre','Hartford, CT','Friday','8/2/2024','7:00 PM','6045224','New-Kids-On-The-Block-8-2-2024'],['Train, REO Speedwagon & Yacht Rock Revue','Xfinity Theatre','Hartford, CT','Saturday','8/3/2024','6:25 PM','6239138','Train--REO-Speedwagon---Yacht-Rock-Revue-8-3-2024'],['Barbie: The Movie - In Concert','Xfinity Theatre','Hartford, CT','Thursday','8/15/2024','8:00 PM','6302502','Barbie--The-Movie---In-Concert-8-15-2024'],['Avril Lavigne, Simple Plan & Girlfriends','Xfinity Theatre','Hartford, CT','Wednesday','8/21/2024','8:00 PM','6226907','Avril-Lavigne--Simple-Plan---Girlfriends-8-21-2024'],['Lynyrd Skynyrd, ZZ Top & The Outlaws','Xfinity Theatre','Hartford, CT','Saturday','8/24/2024','6:30 PM','6045562','Lynyrd-Skynyrd--ZZ-Top---The-Outlaws-8-24-2024'],['Pitbull','Xfinity Theatre','Hartford, CT','Friday','9/13/2024','8:00 PM','6399309','Pitbull-9-13-2024']],'Comcast Theatre','http://www.ticketnetwork.com/ticket/Comcast-Theatre-events.aspx');